/*
* incomeDetails vuex store
* */
import {findAllIncome} from "@/api/income";

const state={
    incomeDetails:[],
}
const actions={
    async incomeDetails(context,userid){
        const result =await findAllIncome(userid);
        context.commit('INCOMEDETAILS',result);
    }
}
const mutations={
    INCOMEDETAILS(state,value){
        state.incomeDetails=value;
    }
}

export default{
    state,
    actions,
    mutations
}